package zuoye1;

import java.sql.SQLOutput;

public class yuan {

    private double r;

    public void setR(double r) {

        System.out.println("半径为："+r);

        this.r = r;

    }

    public double findArea() {

        double s = 3.14*r*r;

        return s;
    }

}
